<section id="content">
  <div class="block">
    <header>
      <h2>Přihlásit se</h2>
    </header>
    <!-- HTML5 sekce pro reference -->
    <section class="block-body">
      <?php      
      echo Form::open('user/login');

      // show errors
      if (!empty($errors)) {
      // show errors
      $errors_view = new View('common/errors');
      echo $errors_view->set('errors', $errors)->render();
      }

      if(!isset($post)) {
      $post = array('username' => 'jonny', 'password' => 'heslo');
      }
      ?>

      <ul>
        <li><label>Username</label><?php echo Form::input('username', $post['username'], array('class' => 'text')) ?></li>
        <li><label>Password</label><?php echo Form::password('password', $post['password'], array('class' => 'text password')) ?></li>
        <li><input type="checkbox" id="remember" name="remember" value="true" /><label for="remember">Zapamatovat si mě</label></li>
      </ul>
      <?php
      echo Form::submit(NULL, 'Login');
      echo Form::close();      
      ?>
      <p class="info"><?php echo __('Don\'t have an account?').' '.Html::anchor('user/register', __('Register new account here.')); ?></p>
      <p class="info"><small><?php echo __('Forgot your username or password?').' '.Html::anchor('user/forgot', __('Send a password reset email.')); ?></small></p>
      <div class="clear-both"></div>
    </section>
  </div>
  <div class="block-bottom"></div>
</section>